import request from '@/config/axios'
import { SystemUserSetting } from '@/api/system/userSetting/types'

export const getSystemUserSettingApi = (): Promise<IResponse<SystemUserSetting>> => {
  return request.get({ url: '/system/user/setting' })
}

export const updateSystemUserSettingApi = (
  data: SystemUserSetting
): Promise<IResponse<SystemUserSetting>> => {
  return request.post({ url: '/system/user/setting/update', data })
}
